import React from 'react';
import { Tag } from 'antd';

const STATUS_MAP = {
    1: { title: '审批中', color: 'volcano' },
    2: { title: '待认领', color: 'volcano' },
    3: { title: '招聘中', color: 'blue' },
    4: { title: '已完成', color: 'green' },
    5: { title: '已取消', color: '' }
};

export default function DemandStatus({ status }) {
    const tag = STATUS_MAP[status] || {};
    return <Tag color={tag.color}>{tag.title}</Tag>;
}
